package com.tiancheng.trade.settlement.vo.settlement.admin;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.ToString;

/**
 * @Auther: lzh
 * @Date: 2024/4/26 15:38
 * @Param ${tags}
 * @Description:清分汇总统计查询条件
 */
@Data
@ToString
@JsonIgnoreProperties(ignoreUnknown = true)
public class SettlementBillQueryVO {

    //清分开始日期
    @JsonProperty("start_date")
    private String startDate;

    //清分结束日期
    @JsonProperty("end_date")
    private String endDate;

    @JsonProperty("current_page")
    private Integer currentPage;

    @JsonProperty("page_size")
    private Integer pageSize;

    public Integer getCurrentPage() {
        if (null == currentPage || currentPage < 0) {
            currentPage = 1;
        }
        return currentPage;
    }

    public Integer getPageSize() {
        if (null == pageSize) {
            pageSize = 20;
        }
        return pageSize;
    }

}
